<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxDao/QxSqlRelation_ManyToOne.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_qx_sql_relation___many_to_one_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">QxSqlRelation_ManyToOne.h</div>  </div>
</div>
<div class="contents">
<a href="_qx_sql_relation___many_to_one_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _QX_SQL_RELATION_MANY_TO_ONE_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _QX_SQL_RELATION_MANY_TO_ONE_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_relation_8h.html" title="Base class for all relationships defined between 2 classes (or between 2 tables in database)...">QxDao/QxSqlRelation.h</a>&gt;</span>
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="keyword">namespace </span>qx {
<a name="l00049"></a>00049 
<a name="l00054"></a>00054 <span class="keyword">template</span> &lt;<span class="keyword">class</span> DataType, <span class="keyword">class</span> Owner&gt;
<a name="l00055"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html">00055</a> <span class="keyword">class </span><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html" title="qx::QxSqlRelation_ManyToOne&lt;DataType, Owner&gt; : manage a relationship many-to-one defined between 2 cl...">QxSqlRelation_ManyToOne</a> : <span class="keyword">public</span> <a class="code" href="classqx_1_1_qx_sql_relation.html" title="qx::QxSqlRelation&lt;DataType, Owner&gt; : base class for all relationships defined between 2 classes (or b...">QxSqlRelation</a>&lt;DataType, Owner&gt;
<a name="l00056"></a>00056 {
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="keyword">private</span>:
<a name="l00059"></a>00059 
<a name="l00060"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a94ff95dbf835d24f172a08f90bb0b479">00060</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9f3abb2f03c6ddd04c4c3e8d8dc9001b">QxSqlRelation&lt;DataType, Owner&gt;::type_owner</a> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a94ff95dbf835d24f172a08f90bb0b479">type_owner</a>;
<a name="l00061"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#af735b3e95bee2f8c7a0104b17c6ba0ed">00061</a>    <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">QxSqlRelation&lt;DataType, Owner&gt;::type_data</a> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#af735b3e95bee2f8c7a0104b17c6ba0ed">type_data</a>;
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="keyword">public</span>:
<a name="l00064"></a>00064 
<a name="l00065"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#aa0f30b526f4ecec607eaa2e334b82514">00065</a>    <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#aa0f30b526f4ecec607eaa2e334b82514">QxSqlRelation_ManyToOne</a>(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * p) : <a class="code" href="classqx_1_1_qx_sql_relation.html" title="qx::QxSqlRelation&lt;DataType, Owner&gt; : base class for all relationships defined between 2 classes (or b...">QxSqlRelation</a>&lt;DataType, Owner&gt;(p) { this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#afeefe51eff98030b99dc3bb876b0b1e4" title="Relation type : one-to-one, one-to-many, etc.">m_eRelationType</a> = <a class="code" href="classqx_1_1_ix_sql_relation.html#a441efa61172fbe9986756e69693c60c1a99d9333a6bbde039e5de83a32dba456e">qx::IxSqlRelation::many_to_one</a>; }
<a name="l00066"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#ad202a4f0e33a372f183ba81a21a6d8fd">00066</a>    <span class="keyword">virtual</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#ad202a4f0e33a372f183ba81a21a6d8fd">~QxSqlRelation_ManyToOne</a>() { ; }
<a name="l00067"></a>00067 
<a name="l00068"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#acb8bf33f7ef78b35988b5255897e34b1">00068</a>    <span class="keyword">virtual</span> QString <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#acb8bf33f7ef78b35988b5255897e34b1">getDescription</a>()<span class="keyword"> const                                     </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;relation many-to-one&quot;</span>; }
<a name="l00069"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#ad8ee55bdd075347167466ca11421b0fb">00069</a>    <span class="keyword">virtual</span> QString <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#ad8ee55bdd075347167466ca11421b0fb">getExtraTable</a>()<span class="keyword"> const                                      </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;&quot;</span>; }
<a name="l00070"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a00a35ce0b1e84114f3a0f2242c15e953">00070</a>    <span class="keyword">virtual</span> QString <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a00a35ce0b1e84114f3a0f2242c15e953">createExtraTable</a>()<span class="keyword"> const                                   </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;&quot;</span>; }
<a name="l00071"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a2504a48e82806039d4faf96d5fa37b86">00071</a>    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a2504a48e82806039d4faf96d5fa37b86">getCartesianProduct</a>()<span class="keyword"> const                                   </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l00072"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#abbfc8402fbcc19bcc0a6e4b3b682dddd">00072</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#abbfc8402fbcc19bcc0a6e4b3b682dddd">lazyFrom</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const                  </span>{ Q_UNUSED(params); }
<a name="l00073"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a3d3a80732b70070ea8407ba1e138c9b2">00073</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a3d3a80732b70070ea8407ba1e138c9b2">eagerFrom</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const                 </span>{ Q_UNUSED(params); }
<a name="l00074"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a7efa03201f3755d0e9608efe177922ce">00074</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a7efa03201f3755d0e9608efe177922ce">lazyJoin</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const                  </span>{ Q_UNUSED(params); }
<a name="l00075"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a7cf1d6c2faa04b36152969ff1d7db43e">00075</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a7cf1d6c2faa04b36152969ff1d7db43e">lazyWhere</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const                 </span>{ Q_UNUSED(params); }
<a name="l00076"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a359e67681a361a74843c462fbc3a9f9f">00076</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a359e67681a361a74843c462fbc3a9f9f">eagerWhere</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const                </span>{ Q_UNUSED(params); }
<a name="l00077"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a41ad05a4cafa9c35b830b0dc3e83bab6">00077</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a41ad05a4cafa9c35b830b0dc3e83bab6">lazyWhereSoftDelete</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const       </span>{ Q_UNUSED(params); }
<a name="l00078"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a57e86612c61f24fad6988cf41c1a74f4">00078</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a57e86612c61f24fad6988cf41c1a74f4">lazyFetch_ResolveInput</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const    </span>{ Q_UNUSED(params); }
<a name="l00079"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a706fbfa8e23410fbc74ef05b55b428e1">00079</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a706fbfa8e23410fbc74ef05b55b428e1">eagerFetch_ResolveInput</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const   </span>{ Q_UNUSED(params); }
<a name="l00080"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a964461f736bd59ff6413dc1947f6777f">00080</a>    <span class="keyword">virtual</span> QSqlError <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a964461f736bd59ff6413dc1947f6777f">onAfterSave</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const          </span>{ Q_UNUSED(params); <span class="keywordflow">return</span> QSqlError(); }
<a name="l00081"></a>00081 
<a name="l00082"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a167f77bc941203673b8c8d5ba450be0e">00082</a>    <span class="keyword">virtual</span> QSqlError <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a167f77bc941203673b8c8d5ba450be0e">onBeforeSave</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00083"></a>00083 <span class="keyword">   </span>{
<a name="l00084"></a>00084       <span class="keywordflow">if</span> (this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation.html#aeaab7a9bd52b82e58f65adf7a6b64dd6">isNullData</a>(params) || params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a586558db71d817109e09818957f319da">recursiveMode</a>()) { <span class="keywordflow">return</span> QSqlError(); }
<a name="l00085"></a>00085       <span class="keywordflow">return</span> <a class="code" href="group___qx_dao.html#ga100e9d635a4720ed9512799ba0ea519b" title="Insert (if no exist) or update (if already exist) an element or a list of elements into database...">qx::dao::save</a>(this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation.html#a302437e27e405dee206f8afc5e9d80e1">getData</a>(params), (&amp; params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a7f7169ed967f39a124e9aced8592620a">database</a>()));
<a name="l00086"></a>00086    }
<a name="l00087"></a>00087 
<a name="l00088"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#ab84b297a0883c3212cac64d35b03c1f1">00088</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#ab84b297a0883c3212cac64d35b03c1f1">lazyUpdate_ResolveInput</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00089"></a>00089 <span class="keyword">   </span>{ this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a99ab93571285187b8dafed701773a201">lazyInsert_ResolveInput</a>(params); }
<a name="l00090"></a>00090 
<a name="l00091"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a72103df7c5e3d8532ee43ba80f2351dc">00091</a>    <span class="keyword">virtual</span> QVariant <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a72103df7c5e3d8532ee43ba80f2351dc">getIdFromQuery</a>(<span class="keywordtype">bool</span> bEager, <a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00092"></a>00092 <span class="keyword">   </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#aafc791c2db8e0157012697ad8b9821b2">getIdFromQuery_ManyToOne</a>(bEager, params); }
<a name="l00093"></a>00093 
<a name="l00094"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a1afad4b3cba3a5d05d4f0bcb962f8bda">00094</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a1afad4b3cba3a5d05d4f0bcb962f8bda">updateOffset</a>(<span class="keywordtype">bool</span> bEager, <a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00095"></a>00095 <span class="keyword">   </span>{ this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a92a8d82970610aa0d0c5567f7c75af40">updateOffset_ManyToOne</a>(bEager, params); }
<a name="l00096"></a>00096 
<a name="l00097"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#aa2f436c208d0f3b8ae20a828ce0f9599">00097</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#aa2f436c208d0f3b8ae20a828ce0f9599">createTable</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00098"></a>00098 <span class="keyword">   </span>{ this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a23e7c323cbc83f42480bab043699cc0a">createTable_ManyToOne</a>(params); }
<a name="l00099"></a>00099 
<a name="l00100"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a11cb5e7baa9098c86c060a0330013e7e">00100</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a11cb5e7baa9098c86c060a0330013e7e">lazySelect</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00101"></a>00101 <span class="keyword">   </span>{ this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a5b3b5e6b65cfaffa72cb644b8de070da">lazySelect_ManyToOne</a>(params); }
<a name="l00102"></a>00102 
<a name="l00103"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a84d5873d364b43070334752dafa09433">00103</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a84d5873d364b43070334752dafa09433">eagerSelect</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00104"></a>00104 <span class="keyword">   </span>{ this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a19f1390533fad1802eac0ffc148b9e2a">eagerSelect_ManyToOne</a>(params); }
<a name="l00105"></a>00105 
<a name="l00106"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#aeb53737ce3b41b18215c474651dc146b">00106</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#aeb53737ce3b41b18215c474651dc146b">eagerJoin</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00107"></a>00107 <span class="keyword">   </span>{ this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a8e5ed2963c0997342686d2a55848467d">eagerJoin_ManyToOne</a>(params); }
<a name="l00108"></a>00108 
<a name="l00109"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a5d704347e1da436ce238927fc3c8ae68">00109</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a5d704347e1da436ce238927fc3c8ae68">eagerWhereSoftDelete</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00110"></a>00110 <span class="keyword">   </span>{ this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a440366dc8ee3f2c6d417ff0a41494a1d">eagerWhereSoftDelete_ManyToOne</a>(params); }
<a name="l00111"></a>00111 
<a name="l00112"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a111a89e708906aac15b13dd0c6d1addf">00112</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a111a89e708906aac15b13dd0c6d1addf">lazyFetch_ResolveOutput</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00113"></a>00113 <span class="keyword">   </span>{
<a name="l00114"></a>00114       <span class="keywordflow">if</span> (! this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#af33eabc335977732a6481ccd434e0df4">verifyOffset</a>(params, <span class="keyword">false</span>)) { <span class="keywordflow">return</span>; }
<a name="l00115"></a>00115       QSqlQuery &amp; query = params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a004c29f4ef96ed2891b9f8d1d12e27b8">query</a>();
<a name="l00116"></a>00116       <span class="keyword">typename</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9f3abb2f03c6ddd04c4c3e8d8dc9001b">QxSqlRelation&lt;DataType, Owner&gt;::type_owner</a> &amp; currOwner = this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation.html#a6db4a2822d4f327eaa690a15a4ab5a3d">getOwner</a>(params);
<a name="l00117"></a>00117       <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pData = this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a961176a40d3c65454b78a2ccd9d40b6c">getDataMember</a>(); <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(pData); <span class="keywordflow">if</span> (! pData) { <span class="keywordflow">return</span>; }
<a name="l00118"></a>00118       <span class="keywordtype">bool</span> bValidId(<span class="keyword">false</span>);
<a name="l00119"></a>00119       <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aa2599d94e81602d2f0fc6c018328f446">getNameCount</a>(); i++)
<a name="l00120"></a>00120       { QVariant vId = query.value(params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#abc497ede45c2dae2ece234e38f7b13df">offset</a>() + i); bValidId = (bValidId || <a class="code" href="namespaceqx_1_1trait.html#a752ada47a935cfc82ffe1b17dadd6e72">qx::trait::is_valid_primary_key</a>(vId)); }
<a name="l00121"></a>00121       <span class="keywordflow">if</span> (pData &amp;&amp; bValidId) { <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aa2599d94e81602d2f0fc6c018328f446">getNameCount</a>(); i++) { pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ab745b2a043797eecfe769c3f51257a35">fromVariant</a>((&amp; currOwner), query.value(params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#abc497ede45c2dae2ece234e38f7b13df">offset</a>() + i), i, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a5fe28c5356333a6d2633c93cbd6e48e5">qx::cvt::context::e_database</a>); } }
<a name="l00122"></a>00122       this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a1afad4b3cba3a5d05d4f0bcb962f8bda">updateOffset</a>(<span class="keyword">false</span>, params);
<a name="l00123"></a>00123    }
<a name="l00124"></a>00124 
<a name="l00125"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#aa6c8f4e859c8a8607a7c1f5bd1bff70d">00125</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> * <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#aa6c8f4e859c8a8607a7c1f5bd1bff70d">eagerFetch_ResolveOutput</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00126"></a>00126 <span class="keyword">   </span>{
<a name="l00127"></a>00127       <span class="keywordflow">if</span> (! this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#af33eabc335977732a6481ccd434e0df4">verifyOffset</a>(params, <span class="keyword">false</span>)) { <span class="keywordflow">return</span> NULL; }
<a name="l00128"></a>00128       QSqlQuery &amp; query = params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a004c29f4ef96ed2891b9f8d1d12e27b8">query</a>();
<a name="l00129"></a>00129       <span class="keyword">typename</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9f3abb2f03c6ddd04c4c3e8d8dc9001b">QxSqlRelation&lt;DataType, Owner&gt;::type_owner</a> &amp; currOwner = this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation.html#a6db4a2822d4f327eaa690a15a4ab5a3d">getOwner</a>(params);
<a name="l00130"></a>00130       <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pData = this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a961176a40d3c65454b78a2ccd9d40b6c">getDataMember</a>(); <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(pData); <span class="keywordflow">if</span> (! pData) { <span class="keywordflow">return</span> NULL; }
<a name="l00131"></a>00131       <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * p = NULL; <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pId = this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a3f3d150e5a4fb774df53d2ea2df2f249">getDataId</a>(); <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(pId); <span class="keywordflow">if</span> (! pId) { <span class="keywordflow">return</span> NULL; }
<a name="l00132"></a>00132       <span class="keywordtype">long</span> lIndex = 0; <span class="keywordtype">long</span> lOffsetId = (pId ? pId-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aa2599d94e81602d2f0fc6c018328f446">getNameCount</a>() : 0); <span class="keywordtype">long</span> lOffsetData = (pData ? pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aa2599d94e81602d2f0fc6c018328f446">getNameCount</a>() : 0);
<a name="l00133"></a>00133       <span class="keywordtype">long</span> lOffsetOld = params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#abc497ede45c2dae2ece234e38f7b13df">offset</a>(); this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a1afad4b3cba3a5d05d4f0bcb962f8bda">updateOffset</a>(<span class="keyword">true</span>, params);
<a name="l00134"></a>00134       <span class="keywordtype">long</span> lOffsetRelation = (lOffsetOld + lOffsetId + lOffsetData);
<a name="l00135"></a>00135       <span class="keywordtype">long</span> lRelation = 0; <a class="code" href="classqx_1_1_ix_sql_relation.html" title="qx::IxSqlRelation : common interface for all relationships defined between 2 classes (or between 2 ta...">IxSqlRelation</a> * pRelation = NULL;
<a name="l00136"></a>00136       <span class="keywordtype">bool</span> bValidId(<span class="keyword">false</span>), bValidIdBis(<span class="keyword">false</span>);
<a name="l00137"></a>00137       <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aa2599d94e81602d2f0fc6c018328f446">getNameCount</a>(); i++)
<a name="l00138"></a>00138       { QVariant vId = query.value(lOffsetOld + i); bValidId = (bValidId || <a class="code" href="namespaceqx_1_1trait.html#a752ada47a935cfc82ffe1b17dadd6e72">qx::trait::is_valid_primary_key</a>(vId)); }
<a name="l00139"></a>00139       <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; pId-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aa2599d94e81602d2f0fc6c018328f446">getNameCount</a>(); i++)
<a name="l00140"></a>00140       { QVariant vIdBis = query.value(lOffsetOld + lOffsetData + i); bValidIdBis = (bValidIdBis || <a class="code" href="namespaceqx_1_1trait.html#a752ada47a935cfc82ffe1b17dadd6e72">qx::trait::is_valid_primary_key</a>(vIdBis)); }
<a name="l00141"></a>00141       <span class="keywordflow">if</span> (pData &amp;&amp; bValidId) { <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aa2599d94e81602d2f0fc6c018328f446">getNameCount</a>(); i++) { pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ab745b2a043797eecfe769c3f51257a35">fromVariant</a>((&amp; currOwner), query.value(lOffsetOld + i), i, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a5fe28c5356333a6d2633c93cbd6e48e5">qx::cvt::context::e_database</a>); } }
<a name="l00142"></a>00142       <span class="keywordflow">if</span> (! bValidIdBis) { <span class="keywordflow">return</span> NULL; }
<a name="l00143"></a>00143 
<a name="l00144"></a>00144       <a class="code" href="classqx_1_1_qx_sql_relation.html#a9aaeb0e5ead83d7a7b6ad14466f2e122">type_data</a> &amp; currData = this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation.html#a302437e27e405dee206f8afc5e9d80e1">getData</a>(params);
<a name="l00145"></a>00145       <span class="keywordflow">if</span> (! this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation.html#a155eb6ac8002fec56efcbcd3648d7c22">callTriggerBeforeFetch</a>(currData, params)) { <span class="keywordflow">return</span> NULL; }
<a name="l00146"></a>00146       <span class="keywordflow">if</span> (pId) { <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; pId-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aa2599d94e81602d2f0fc6c018328f446">getNameCount</a>(); i++) { pId-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ab745b2a043797eecfe769c3f51257a35">fromVariant</a>((&amp; currData), query.value(lOffsetOld + lOffsetData + i), i, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a5fe28c5356333a6d2633c93cbd6e48e5">qx::cvt::context::e_database</a>); } }
<a name="l00147"></a>00147       <span class="keywordflow">while</span> ((p = this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a5a8db73ceae8007f07be60cd7ae20dcd">nextData</a>(lIndex)))
<a name="l00148"></a>00148       { <span class="keywordflow">if</span> (params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#aabae131097d33ab208c7d36d89094de5">checkColumns</a>(p-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#aaf7b8145ed3e5a4708ff713951629744">getKey</a>())) { p-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#ab745b2a043797eecfe769c3f51257a35">fromVariant</a>((&amp; currData), query.value(lOffsetRelation++), -1, <a class="code" href="structqx_1_1cvt_1_1context.html#ade79c85929462745a3adcdf310c91a93a5fe28c5356333a6d2633c93cbd6e48e5">qx::cvt::context::e_database</a>); } }
<a name="l00149"></a>00149 
<a name="l00150"></a>00150       <span class="keywordflow">if</span> (params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a78bc1c49214f1681b0b26ecf31e42b4b">relationX</a>())
<a name="l00151"></a>00151       {
<a name="l00152"></a>00152          <span class="keywordtype">long</span> lIndexOwnerOld = params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a74d1d10b37d8b26711ce539459d14efe">indexOwner</a>(); params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a52b38457e3acf39299cc9f5d6e443835">setIndexOwner</a>(params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a9e4cc344e92f94c091fe3239e8c9606b">index</a>());
<a name="l00153"></a>00153          <span class="keywordtype">void</span> * pOwnerOld = params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#ab814ecb53d7247de54b0badd3c97fc0d">owner</a>(); params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a053d86dd38e5a3298e64b02ce77935fb">setOwner</a>(&amp; currData);
<a name="l00154"></a>00154          lOffsetOld = params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#abc497ede45c2dae2ece234e38f7b13df">offset</a>(); params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a13d36ae95132b41ce06f4ec8b922f1c0">setOffset</a>(lOffsetRelation++);
<a name="l00155"></a>00155          <span class="keywordflow">while</span> ((pRelation = this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a69766925bc960fa91313c918c49b2476">nextRelation</a>(lRelation)))
<a name="l00156"></a>00156          { <span class="keywordflow">if</span> (this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#ae7936f9dac464d0382df509da12b0c5b">addLazyRelation</a>(params, pRelation)) { pRelation-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a58a02ae9bd627892325950ab69093604">lazyFetch_ResolveOutput</a>(params); } }
<a name="l00157"></a>00157          params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a053d86dd38e5a3298e64b02ce77935fb">setOwner</a>(pOwnerOld); params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a13d36ae95132b41ce06f4ec8b922f1c0">setOffset</a>(lOffsetOld);
<a name="l00158"></a>00158          params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a52b38457e3acf39299cc9f5d6e443835">setIndexOwner</a>(lIndexOwnerOld);
<a name="l00159"></a>00159       }
<a name="l00160"></a>00160 
<a name="l00161"></a>00161       <span class="keywordflow">if</span> (! this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation.html#a2349b717af0c614cde745905820eeaf1">callTriggerAfterFetch</a>(currData, params)) { <span class="keywordflow">return</span> NULL; }
<a name="l00162"></a>00162       <span class="keywordflow">return</span> (&amp; currData);
<a name="l00163"></a>00163    }
<a name="l00164"></a>00164 
<a name="l00165"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#adfb25069e0ea91edf5d60f6112421f37">00165</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#adfb25069e0ea91edf5d60f6112421f37">lazyInsert</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00166"></a>00166 <span class="keyword">   </span>{ this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#ab594aac2e8dedb7cd1592c05e8109705">lazyInsert_ManyToOne</a>(params); }
<a name="l00167"></a>00167 
<a name="l00168"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a69cf4d3cef2a264f2368eef59a99d4a5">00168</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a69cf4d3cef2a264f2368eef59a99d4a5">lazyInsert_Values</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00169"></a>00169 <span class="keyword">   </span>{ this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a9d7238985b6331d741b55640761ffa3f">lazyInsert_Values_ManyToOne</a>(params); }
<a name="l00170"></a>00170 
<a name="l00171"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a20b527a7f3773334259bf0b13d30883b">00171</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a20b527a7f3773334259bf0b13d30883b">lazyUpdate</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00172"></a>00172 <span class="keyword">   </span>{ this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a724df13180c1bf55cb339e697525bc47">lazyUpdate_ManyToOne</a>(params); }
<a name="l00173"></a>00173 
<a name="l00174"></a><a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a99ab93571285187b8dafed701773a201">00174</a>    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_sql_relation___many_to_one.html#a99ab93571285187b8dafed701773a201">lazyInsert_ResolveInput</a>(<a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">QxSqlRelationParams</a> &amp; params)<span class="keyword"> const</span>
<a name="l00175"></a>00175 <span class="keyword">   </span>{
<a name="l00176"></a>00176       QSqlQuery &amp; query = params.<a class="code" href="classqx_1_1_qx_sql_relation_params.html#a004c29f4ef96ed2891b9f8d1d12e27b8">query</a>();
<a name="l00177"></a>00177       <span class="keyword">typename</span> <a class="code" href="classqx_1_1_qx_sql_relation.html#a9f3abb2f03c6ddd04c4c3e8d8dc9001b">QxSqlRelation&lt;DataType, Owner&gt;::type_owner</a> &amp; currOwner = this-&gt;<a class="code" href="classqx_1_1_qx_sql_relation.html#a6db4a2822d4f327eaa690a15a4ab5a3d">getOwner</a>(params);
<a name="l00178"></a>00178       <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * pData = this-&gt;<a class="code" href="classqx_1_1_ix_sql_relation.html#a961176a40d3c65454b78a2ccd9d40b6c">getDataMember</a>(); <a class="code" href="_qx_macro_8h.html#a70ab6c4ed8eb3e23107f171e0b41d612">qAssert</a>(pData);
<a name="l00179"></a>00179       <span class="keywordflow">if</span> (pData) { pData-&gt;<a class="code" href="classqx_1_1_ix_data_member.html#abb719e3cd22840effe36f0d9c1c8f10c">setSqlPlaceHolder</a>(query, (&amp; currOwner)); }
<a name="l00180"></a>00180    }
<a name="l00181"></a>00181 
<a name="l00182"></a>00182 };
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 } <span class="comment">// namespace qx</span>
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 <span class="preprocessor">#endif // _QX_SQL_RELATION_MANY_TO_ONE_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_qx_sql_relation___many_to_one_8h.html">QxSqlRelation_ManyToOne.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:04 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
